package com.ftg.learn.day10.pattern.adapter;

/**
 * @author 布衣
 */
public class AdvancePlayerFactory {

    public static AdvancePlayer getPlayer(String postfix){
        switch (postfix.toLowerCase()){
            case "mp3":
                return new Mp3Player();
            case "mp4":
                return new Mp4Player();
            default:
              return null;
        }
    }
}
